

<script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js"></script>

<body>


<img id="verImg" width="130px" height="48px"/>

</body>




<script>
    var verKey;
    // 获取验证码
    $.get('http://localhost:9100/login/captcha?mobile=123456', function(res) {
        console.log(res);
        verKey = res.data;
        $('#verImg').attr('src', res.data.image);
    },'json');

</script>